import java.util.Scanner;

public class Exer3_7_4 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入是否是会员：");
        String vip =input.next();
        System.out.println("请输入购物金额：");
        double money =input.nextInt();
        if(vip.equals("y")){
            if(money>=200){
                System.out.println("打7.5折!");
            }else{
                System.out.println("打8折！");
            }
        }else{
            if(money>=100){
                System.out.println("打9折！");
            }else{
                System.out.println("不打折！");
            }
        }
    }
}
